package cn.itsource.ymcc.openfeign;

import cn.itsource.ymcc.common.result.JsonResult;
import cn.itsource.ymcc.openfeign.fallback.MediaFeignClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-media",fallbackFactory = MediaFeignClientFallbackFactory.class)
public interface MediaFeignClient {
    @GetMapping("/mediaFile/getList/{chapterId}")
    JsonResult getList(@PathVariable("chapterId") Long chapterId);
}
